﻿using Nop.Web.Framework.Mvc.Routes;
using System.Web.Mvc;
using System.Web.Routing;

namespace Nop.Plugin.Misc.Reservations 
{
    public class RouteProvider : IRouteProvider 
    {
        public void RegisterRoutes(RouteCollection routes) 
        {
            routes.MapRoute("RouteToHomePage1",
                "reservation/",
                new { controller = "Home", action = "Index" },
                new[] { "Nop.Web.Controllers" });

            routes.MapRoute("RouteToHomePage2",
                "reservation/index/",
                new { controller = "Home", action = "Index" },
                new[] { "Nop.Web.Controllers" });
        }

        public int Priority 
        {
            get { return 0; }
        }
    }
}
